package com.gcu.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcu.pojo.userInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface userMapper extends BaseMapper<userInfo> {
    @Select("select * from userinfo")
    List<userInfo> selectAllUserinfo();

    @Select("select * from userinfo where userid = #{userid}")
    List<userInfo> selectUserInfoByUserid(String userid);


}
